package com.jml;

import com.codingapi.txlcn.tracing.http.SpringTracingApplier;
import feign.RequestInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients
@SpringBootApplication
@MapperScan("com.jml.impl.mapper")
@EnableDistributedTransaction
public class AppDistribute {
    public static void main(String[] args)
    {//这个类就是feign客户端拦截器
        RequestInterceptor r = null;
        //这个类就是拦截进入参与者的请求获取groupId然后放入ThreadLocal、就是用的springmvc的拦截器
        Class<SpringTracingApplier> springTracingApplierClass = SpringTracingApplier.class;
        SpringApplication.run(AppDistribute.class);
    }
}
